package com.whpost.admin.controller.stamp.h5;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;

import org.springframework.web.bind.annotation.*;



@Controller
@RequestMapping("/h5/card")
public class CardController {

    @RequestMapping(value="/show_hd")
    public String show_hd(Model model, String xm_id) {
        model.addAttribute("xm_id", xm_id);
        return "stamp/h5/card/show_hd";
    }

    @RequestMapping(value="/add")
    public String add(Model model, String hd_id,String xm_id) {
        model.addAttribute("hd_id", hd_id);
        model.addAttribute("xm_id", xm_id);
        return "stamp/h5/card/add";
    }

    @RequestMapping(value="/add_yl")
    public String addYl(Model model,String id,String lx) {
        model.addAttribute("id", id);
        model.addAttribute("lx", lx);
        return "stamp/h5/card/add_yl";
    }

    @RequestMapping(value="/gxh_add")
    public String gxhAdd(Model model, String hd_id, String xm_id) {
        model.addAttribute("hd_id", hd_id);
        model.addAttribute("xm_id", xm_id);
        return "stamp/h5/card/gxh_add";
    }

    @RequestMapping(value="/gxh_add_yl")
    public String gxhAddYl(Model model,String id) {
        model.addAttribute("id", id);
        return "stamp/h5/card/gxh_add_yl";
    }

    @RequestMapping(value="/wdzp")
    public String wdzp(Model model, String hd_id, String xm_id) {
        model.addAttribute("hd_id", hd_id);
        model.addAttribute("xm_id", xm_id);
        return "stamp/h5/card/wdzp";
    }

    @RequestMapping(value="/order_info")
    public String orderInfo(Model model, String id) {
        model.addAttribute("id", id);
        return "stamp/h5/card/order_info";
    }

    @RequestMapping(value="/myorder")
    public String myorder(String searchInput,String xm_id,Model model) {
        model.addAttribute("searchInput", searchInput);
        model.addAttribute("xm_id", xm_id);
        return "stamp/h5/card/myorder";
    }
}
